<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<link href="__PUBLIC__/ht/css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/ht/css/jquery.datetimepicker.css"/>
<script type="text/javascript" src="__PUBLIC__/ht/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/ht/js/action.js"></script>
<script type="text/javascript" src="__PUBLIC__/plugins/xheditor/xheditor-1.2.1.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/plugins/xheditor/xheditor_lang/zh-cn.js"></script>
</head>
<script type="text/javascript">
$(function(){
    //初始化编辑器
    $('#content').xheditor({
      skin:'nostyle' ,
      upImgUrl:'{:U("Upload/xheditor")}'
    });
}); 
</script>
<body>

<div class="aaa_pts_show_1">【 学员风采 】</div>

<div class="aaa_pts_show_2">
    
    <div>
       <div class="aaa_pts_4"><a href="{:U('index')}">全部学员风采</a></div>
       <div class="aaa_pts_4"><a href="{:U('add')}">学员风采编辑</a></div>
    </div>
    <div class="aaa_pts_3">
      <form action="{:u('save')}" method="post" enctype="multipart/form-data" onsubmit="return ac_from();">
      <ul class="aaa_pts_5">
         <li>
            <div class="d1">标   题:</div>
            <div>
              <input class="inp_1" name="title" id="title" style="width:400px;" value="<?php echo $info['title']; ?>"/>
            </div>
         </li>
         <li>
            <div style="color:#c00; font-size:14px; padding-left:20px;">上传图片格式为jpg、jpeg、png</div>
         </li>
         <li>
            <div class="d1">列表展示图:</div>
            <div>
              <if condition="$info['photo'] neq ''">
              <img src="__DATA__/<?php echo $info['photo']; ?>" width="240px" height="160px" />
              </if>
			        <input type="file" name="file" id="photo" />
            </div>
         </li>
         <li>
            <div class="d1">内容介绍:</div>
            <div>
              <textarea class="inp_1 inp_2" name="content" id="content"/><?php echo $info['content']; ?></textarea>
            </div>
         </li>
         <li>
            <div class="d1">来    源:</div>
            <div>
              <input style="width: 150px;" class="inp_1" name="source" id="source" value="<?php echo $info['source']; ?>"/>&nbsp;&nbsp;备注：默认雷米高
            </div>
         </li>
         <li>
            <div class="d1">编辑作者:</div>
            <div>
              <input class="inp_1" name="author" id="author" value="<?php echo $info['author']; ?>"/>
            </div>
         </li>
         <li>
            <div class="d1">浏览量:</div>
            <div>
              <input class="inp_1" name="view" id="view" value="<?php echo $info['view']; ?>"/>
            </div>
         </li>
              <input type="hidden" name="id" value="<?php echo (int)$info['id']; ?>"/>
         <li><input type="submit" name="submit" value="提交" class="aaa_pts_web_3" border="0"></li>
      </ul>
      </form>
         
    </div>
    
</div>
<script>
function ac_from(){

  var title=document.getElementById('title').value;
  if(!title){
	  alert('请输入学员风采名称！');
	  return false;
	} 
	  
}
</script>
<!-- <script src="__PUBLIC__/ht/js/jquery.date.js"></script>
<script src="__PUBLIC__/ht/js/jquery.datetimepicker.js"></script> -->
<script>
/*$('#opentime').datetimepicker({
      format:'Y-m-d H:00',
      formatDate:'Y-m-d H:00',
    });*/
</script> 
</body>
</html>